/*
 * @Author: your name
 * @Date: 2022-01-07 18:37:57
 * @LastEditTime: 2022-01-11 08:46:16
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \admin\src\router\page.js
 */
import * as router from "./index";
const routes = [{
        path: "/login",
        component: router.Login,
    },
    {
        path: "/register",
        component: router.Register,
    },

    {
        path: "/",
        component: router.Layout,
        children: [{
                from: "/",
                to: "/workbench",
            },
            {
                path: "/workbench",
                component: router.Workbench,
            },
            {
                path: "/allarticle",
                component: router.AllArticle,
            },
            {
                path: "/category",
                component: router.CategoryArticle,
            },
            {
                path: "/tag",
                component: router.TagArticle,
            },
            {
                path: "/page",
                component: router.PageAdmin,
            },
            {
                path: "/knowledge",
                component: router.Knowledge,
            },
            {
                path: "/poster",
                component: router.PosterAdmin,
            },
            {
                path: "/comment",
                component: router.CommentAdmin,
            },
        ],
    },
];
export default routes;